﻿using MyDapperApi.Models;

namespace MyDapperApi.Services;

public interface IUserService
{
    Task<IEnumerable<User>> GetAllUsersAsync();
    Task<User?> GetUserByIdAsync(int id);
    Task<User?> GetUserByEmailAsync(string email);
    Task<int> CreateUserAsync(User user);
    Task<int> UpdateUserAsync(User user);
    Task<int> DeleteUserAsync(int id);
    Task<IEnumerable<User>> GetUsersByAgeRangeAsync(int minAge, int maxAge);
}